import request from '@/utils/request'

// 查询通讯录授权列表
export function listApplyContacts(query) {
    return request({
        url: '/business/ApplyContacts/list',
        method: 'get',
        params: query
    })
}

// 查询通讯录授权详细
export function getApplyContacts(id) {
    return request({
        url: '/business/ApplyContacts/' + id,
        method: 'get'
    })
}

// 新增通讯录授权
export function addApplyContacts(data) {
    return request({
        url: '/business/ApplyContacts',
        method: 'post',
        data: data
    })
}

// 修改通讯录授权
export function updateApplyContacts(data) {
    return request({
        url: '/business/ApplyContacts',
        method: 'put',
        data: data
    })
}

// 删除通讯录授权
export function delApplyContacts(id) {
    return request({
        url: '/business/ApplyContacts/' + id,
        method: 'delete'
    })
}

// 导出通讯录授权
export function exportApplyContacts(query) {
    return request({
        url: '/business/ApplyContacts/export',
        method: 'get',
        params: query
    })
}